package edu.myown.node;

import java.util.List;
import java.util.ArrayList;
import java.io.*;

public class Node implements Serializable{
		
	private String data;
	private List<Node> childNodes = new ArrayList<Node>();
	
		public void setData(String data) {
			this.data = data;
		}
		
		public String getData() {
			return data;
		}
		
		public void add (Node child){			
			childNodes.add(child);				
//			child.parentNode = this; 				
		}
		
		public void setChildNodes(List<Node> childNodes) {
			this.childNodes = childNodes;
		}

		public List<Node> getChildNodes() {
			return childNodes;
		}
		
}
